export default {
  'POST /api/login': {
    header: {
      requestId: '99999999',
      gid: '888888',
      errorCode: '000000',
      errorMsg: '操作成功',
      success: true,
    },
    data: {
      id: 1,
      userCode: 'liwenhai',
      userName: '李文海',
      mobile: '18617320550',
      email: '1065124503@qq.com',
      createTime: '2024-6-20 12:12:12',
      updateTime: '2024-6-21 13:13:13',
      organizationId: '03-01',
      organizationName: '研发一部',
    },
  },
  'POST /user/getUserInfo': {
    header: {
      requestId: '99999999',
      gid: '888888',
      errorCode: '000000',
      errorMsg: '操作成功',
      success: true,
    },
    data: {},
  },
  'GET /api/userInfo': {
    header: {
      requestId: '99999999',
      gid: '888888',
      errorCode: '000000',
      errorMsg: '操作成功',
      success: true,
    },
    data: {
      id: 1,
      userCode: 'liwenhai',
      userName: '李文海',
      mobile: '18617320550',
      email: '1065124503@qq.com',
      createTime: '2024-6-20 12:12:12',
      updateTime: '2024-6-21 13:13:13',
      organizationId: '03-01',
      organizationName: '研发一部',
    },
  },
  'POST /api/anyics-front/user/login': {
    code: 200,
    data: {
      token: '123456',
      userId: '123456',
      roles: [
        {
          id: '123456',
          roleId: '123456',
          roleName: '测试角色',
        },
      ],
      positions: [
        {
          id: '123456',
          positionId: '123456',
          positionName: '测试岗位',
        },
      ],
    },
  },
  // 按照需求文档最新的接口报文结构编写的菜单mock数据,菜单管理页面获取表格数据
  'POST /api/anyics-front/user/select-role-position': {
    code: 200,
    data: {
      allPermissions: [
        // 工作台
        {
          id: 1,
          displayOrder: 1,
          identifierField: 'id',
          resourceName: '工作台',
          resourceUrl: '/workBench/demo',
          resourceDesc: '工作台',
          createTime: '2024-6-20 12:12:12',
          updateTime: '2024-6-21 13:13:13',
          createUser: 'testUser1',
          updateUser: 'testUser2',
          children: [
            {
              parentId: 1,
              id: 1000,
              displayOrder: 1,
              identifierField: 'id',
              resourceName: 'demo',
              resourceUrl: '/workBench/demo',
              resourceDesc: 'demo',
              createTime: '2024-6-20 12:12:12',
              updateTime: '2024-6-21 13:13:13',
              createUser: 'testUser1',
              updateUser: 'testUser2',
              permissions: [
                { permissionId: 'create', permissionName: '新增' },
                { permissionId: 'edit', permissionName: '编辑' },
                { permissionId: 'delete', permissionName: '删除' },
              ],
            },
            {
              parentId: 1,
              id: 1001,
              displayOrder: 1,
              identifierField: 'id',
              resourceName: 'UI展示',
              resourceUrl: '/workBench/uiPage',
              resourceDesc: 'UI展示',
              createTime: '2024-6-20 12:12:12',
              updateTime: '2024-6-21 13:13:13',
              createUser: 'testUser1',
              updateUser: 'testUser2',
              permissions: [
                { permissionId: 'create', permissionName: '新增' },
                { permissionId: 'edit', permissionName: '编辑' },
                { permissionId: 'delete', permissionName: '删除' },
              ],
            },
          ],
        },
        // 工作台
        {
          id: 2,
          displayOrder: 1,
          identifierField: 'id',
          resourceName: '测试',
          resourceUrl: '/workBench/test',
          resourceDesc: '工作台',
          createTime: '2024-6-20 12:12:12',
          updateTime: '2024-6-21 13:13:13',
          createUser: 'testUser1',
          updateUser: 'testUser2',
          children: [
            {
              parentId: 2,
              id: 2001,
              displayOrder: 1,
              identifierField: 'id',
              resourceName: 'test',
              resourceUrl: '/workBench/test',
              resourceDesc: 'test',
              createTime: '2024-6-20 12:12:12',
              updateTime: '2024-6-21 13:13:13',
              createUser: 'testUser1',
              updateUser: 'testUser2',
              permissions: [
                { permissionId: 'create', permissionName: '新增' },
                { permissionId: 'edit', permissionName: '编辑' },
                { permissionId: 'delete', permissionName: '删除' },
              ],
            },
          ],
        },
      ],
      userInfo: {
        userId: '123456',
        userCode: '123456',
        userName: '张三',
        empName: '张三',
        branchName: '总行',
        avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
        organizationId: '123456',
        organizationName: '总行',
        createTime: '2024-6-20 12:12:12',
        updateTime: '2024-6-21 13:13:13',
        userType: 'admin',
      },
    },
  },
  'GET /api/routes': {
    header: {
      requestId: '99999999',
      gid: '888888',
      errorCode: '000000',
      errorMsg: '操作成功',
      success: true,
    },
    data: [
      {
        path: '/login',
        component: '@/pages/login',
      },
      {
        path: '/',
        component: '@/layouts/BasicLayout',
      },
      {
        path: '/welcome',
        name: '歡迎',
        component: '@/pages/welcome',
      },
      {
        path: '/param/demo',
        name: 'demo',
        component: '@/pages/param/demo',
      },
      {
        path: '/param/interfaceConfig',
        name: '接口配置参数应用服务',
        component: '@/pages/param/interfaceConfig',
      },
      {
        path: '/param/interfaceMapping',
        name: '接口映射参数应用服务',
        component: '@/pages/param/interfaceMapping',
      },
      {
        path: '/param/doubleWhite',
        name: '双发白名单服务',
        component: '@/pages/param/doubleWhite',
      },
      {
        path: '/param/errorCodeMap',
        name: '错误代码映射参数',
        component: '@/pages/param/errorCodeMap',
      },
      {
        path: '/param/convertConfig',
        name: '转换配置查找',
        component: '@/pages/param/convertConfig',
      },
      {
        path: '/param/searchConfig',
        name: '查找配置参数',
        component: '@/pages/param/searchConfig',
      },
      {
        path: '/system/role',
        name: '用戶管理',
        component: '@/pages/system/role',
      },
      {
        path: '/system/menu',
        name: '選單管理',
        component: '@/pages/system/menu',
      },
      {
        path: '/other/home',
        name: '儀表盤',
        component: '@/pages/system/menu',
      },
      { path: '/*', component: '@/pages/404' },
    ],
  },
};
